/* heavily adapted from Desirée De Leon's tidymodels pkgdown CSS */
/* https://github.com/tidyverse/tidytemplate/blob/master/inst/pkgdown/assets/tidymodels.css */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap');

:root {
  --pg-header: #096B72; /*green*/
  --dk-header: #013631; /*darker green*/
  --bw-header: #07555a; /*between medium green*/
  --a-hover: #405359;   /*dark grey*/
  --a-alpha: #6C797C;   /*dark grey white added*/
  --nav-bkg: #e6f3fc;   /*pale blue*/
  --accent: #79beee;    /*sky blue*/
}

pre, code {
  font-family: "Source Code Pro", Consolas, Inconsolata, monospace;
  font-size: 16px;
}

code {
  text-transform: none
}

h1 > code, h2 > code, h3 > code, h4 > code, h5 > code, h6 > code {
    font-size: inherit;
    background-color: inherit;
    color: inherit;
}

body {
  font-size: 18px;
  font-family: Work Sans;
  line-height: 1.6em;
}

/*
h1 {font-size: 40px;}
h2 {font-size: 33px;}
h3 {font-size: 23px;}
h4 {font-size: 20px;}
*/

h1 {
  font-size: 2.0em;
  font-weight: 400;
  letter-spacing: .08em;
}
h2 {
  font-size: 1.7em;
  font-weight: 300;
  color: var(--pg-header);
  letter-spacing: .08em;
}
h3 {
  font-size: 1.2em;
  text-transform: uppercase;
  font-weight: 200;
  color: var(--bw-header);
  letter-spacing: .1em;
}
h4 {
  font-size: 1.2em;
  text-transform: none;
  font-weight: 600;
  color: var(--dk-header);
  letter-spacing: .05em;
}

h1, h2, h3, h4 {
  font-family: 'Work Sans', sans-serif;
/*font-weight: normal;*/
/* font-size: 1.3em; */
/*  letter-spacing: 1.2pt; */
  /*text-transform: uppercase;*/
}

.page-header h1 {
  color: var(--pg-header);
  font-weight: normal;
  text-transform: none;
  letter-spacing: normal;
  font-size: 2.4em;
}




.contents .page-header {
  margin-top: 10px;
}

a:hover {
  color: var(--a-hover);
}

a {
  color: var(--pg-header);
}

p a {
  text-decoration: underline var(--pg-header) dotted;
  text-decoration-skip-ink: none;
  text-decoration-thickness: from-font;
}


/* navbar ----------------------------------------------- */

.navbar {
  background-color: var(--nav-bkg);
  box-shadow: none !important;
  border-bottom: 0pt !important;
  padding-bottom: 1em;
  padding-top: 1em;
}


.navbar-brand {
  /*background-image: url(reference/figures/rmarkdown.png);
  background-size: 32px auto;
  background-repeat: no-repeat;
  background-position: 15px center;*/
	padding: 0 0 0 10px;
	height: 50px;
	line-height: 50px;
	font-size: 20px;
}

/* only when using navbar custom template */
.navbar .info .version-danger {
  font-weight: bold;
  color: #fff; /* #126180 */
}

.navbar-brand .version {
	font-family: "Work Sans", sans-serif;
}

.label-default,
.label-danger {
	background-color: var(--a-alpha);
}

/* make room in navbar for longer text */
.navbar .info {
  /* background-image: url(rmarkdown.png);
  background-size: 40px auto;
  background-repeat: no-repeat;
  background-position: 10px center; */
	float: right;
	height: 50px;
	width: 250px;
	font-size: 80%;
	position: relative;
	margin-left: 10px;
	margin-top: 10px;
	padding-left: 0px;  /* 60px; */
	/* border-left: 1px solid #C8CED0; */
}

.navbar > .container .navbar-brand,
.navbar > .container-fluid .navbar-brand {
	padding-right: 10px;
}

.navbar-nav li a {
  /*text-transform: uppercase;*/
  letter-spacing: 0.1rem;
  font-size: 1em;
}

/*
.navbar-nav li a:hover {
  color: #187BA2 !important;
}
*/

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #013631;
  background-color: inherit;
  text-decoration: none;
}

.navbar-default .navbar-brand,
.navbar-default .navbar-nav > li > a {
	color: #555555;
}

.navbar-default .navbar-link:hover {
	color: #013631;
	text-decoration: none !important;
}

.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > li > a:hover {
	color: #013631;
	background-color: transparent;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
	color: #013631;
	background-color: transparent;
}

/* dropdowns in navbar */
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:focus,
.navbar-default .navbar-nav > .open > a:hover {
	color: #555;
	background-color: var(--nav-bkg);
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
	color: var(--pg-header);
	text-decoration: none;
	outline: 0;
	background-color: var(--nav-bkg);
}

/* White Space */

.row {
  margin-top: 1.5em;
}

@media (min-width: 768px) {
  .contents {
    padding-right: 4em;
  }
}

.contents h1, .contents h2, .contents h3, .contents h4{
  margin-bottom: 1.3em;
  margin-top: -30px; /* originally -40px */
}


/* sidebar ------------------------------------------------ */

#pkgdown-sidebar {
  /* border-left: 1px solid #7e7e7e; */
  padding-left: 25px;
  top: 7em; /* so that navbar doesn't cover it for sticky pos */
}

#pkgdown-sidebar h2 {
  font-size: 1em;
  margin-bottom: 0.85em;
  text-transform: uppercase;
  /* font-weight: 700; */
  color: var(--pg-header);
  letter-spacing: 1.5pt;
  padding-left: 10px;
}

#pkgdown-sidebar ul.list-unstyled {
  padding-left: 0;
  list-style: none;
  margin-bottom: 1.2em;
  font-size: 1.5rem;
}


#pkgdown-sidebar .list-unstyled li {
  padding-bottom: 1em;
  padding-left: 10px;
  margin-bottom: 0;
  line-height: 1.4em;
  letter-spacing: 0.4pt;
  font-size: 1.5rem;
}

#pkgdown-sidebar small.roles {
  font-size: 0.8em;
  text-transform: uppercase;
  color: #00000094;
}

#pkgdown-sidebar a {
  color: var(--a-hover);
  text-decoration: none;
}

#pkgdown-sidebar a:hover {
  text-decoration: underline;
  color: #013631;
}


/*----TOC sidebar on non-homepages----*/

nav[data-toggle='toc'] .nav > li > a {
    padding: 4px 20px 4px 10px; /* Left-padding changed from 6px to 5px, so shift left does not happen on hover */
}

/* Active, hover, and focus links */

nav[data-toggle='toc'] .nav > .active > a,
nav[data-toggle='toc'] .nav > .active:hover > a,
nav[data-toggle='toc'] .nav > .active:focus > a,
nav[data-toggle='toc'] ul > li > a:hover {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  letter-spacing: 1pt;
  font-size: 15px;
  text-decoration: none !important;
}

/* Increase space between list items, descrease within-item spacing */
nav[data-toggle='toc'] .nav li {
  margin-top: 0.5em;
  line-height: 1.5;
}

nav[data-toggle='toc'] > ul > li:first-child {
  margin-top: 0;
}

nav[data-toggle='toc'] .nav > li > a:hover,
nav[data-toggle='toc'] .nav > li > a:focus {
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}


/* Links NOT hovered or active */

nav[data-toggle='toc'] ul > li > a {
  border-left: 3px solid #FFFFFF;
  padding-left: 10px;
  letter-spacing: 1pt;
  font-size: 15px;
  text-decoration: none !important;
}

/* Nested List items: never get border*/

nav[data-toggle='toc'] .nav .nav > li > a:hover,
nav[data-toggle='toc'] .nav .nav > li > a:active,
nav[data-toggle='toc'] .nav .nav > li > a:focus,
nav[data-toggle='toc'] .nav .nav > li > a,

nav[data-toggle='toc'] .nav .nav > .active > a,
nav[data-toggle='toc'] .nav .nav > .active:hover > a,
nav[data-toggle='toc'] .nav .nav > .active:focus > a {
  padding-left: calc(10px + 15px);
  font-size: 1.35rem;
  border-left: none !important;
}



/*----Copy Buttons ----*/

.btn-primary {
  background-color: var(--pg-header);
  border-color: var(--pg-header);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

/*----- COLORED LIST BULLET----*/

ul > li::marker {
  color: var(--accent);
}

/* from original source docs */

.snippet {
  border: solid 1px #cccccc;
  margin-bottom: 12px;
  width: 100%;
}

.screenshot {
  border: solid 1px #cccccc;
  margin-bottom: 15px;
}

.screenshot-right {
  float: right;
  margin-left: 15px;
}

.holder {
  padding-right: 5px;
  padding-bottom: 5px;
}

.nopadding {
   padding: 0 !important;
   margin: 0 !important;
}

.thumbnail {
  border: 1px solid white;
}

.thumbnail .caption {
  padding: 0;
  padding-top: 4px;
  padding-left: 3px;
  font-size: 0.9em;
  color: var(--dk-header);
}

a.thumbnail:hover {
  text-decoration: none;
}

table a:not(.btn), .table a:not(.btn) {
  text-decoration: none;
}

table a:not(.btn):hover, .table a:not(.btn):hover {
  text-decoration: underline;
}

a.anchor {
  margin-left: -22px;
	display: inline-block;
	width: 22px;
	height: 22px;
	visibility: hidden;
	background-image: url(./link.svg);
	background-repeat: no-repeat;
	background-size: 20px 20px;
	background-position: center bottom;
}


a.thumbnail.active,
a.thumbnail:focus,
a.thumbnail:hover {
	border-color: #FEDB00;
}



/* tweak headroom.js to not disappear as aggressively at the top of the page */
.headroom {
  will-change: transform;
  transition: transform 400ms ease;
}

.page-header {
	padding-bottom: 0px;
}

/* Size of book cover in README */
img.book {
    height: 400px;
    width: auto;
}
